public class Test2 {
    public static void main(String[] args) {

    }
}
class Student{
    public String name;
    public int age;
    //普通成员变量



    public static String room = "301";
    //教室就只有份了/静态成员变量——所有对象共用


    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }


    public void print(){
        System.out.println("姓名:"+this.name+" 年龄: "+this.age);
    }
}